package function;


import org.apache.hadoop.hive.ql.exec.UDF;

public class HelloUDF extends UDF {
    public String evaluate(String sname){
        return "您好a:::" + sname;
    }

    public static void main(String[] args) {
        System.out.println(Math.round(Math.random()*10));    //0-1
        System.out.println(Math.round(Math.random()*10));    //0-1
        System.out.println(Math.round(Math.random()*10));    //0-1
        System.out.println(Math.round(Math.random()*10));    //0-1
        System.out.println(Math.round(Math.random()*10));    //0-1
        System.out.println(Math.round(Math.random()*10));    //0-1
    }
}
